package com.controller;


import java.rmi.RemoteException;
import java.util.HashMap;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.rpc.ServiceException;

import org.json.JSONArray;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import util.AjaxUtil;
import util.ServletAPIUtil;

import com.service.BroadbandManService;


@Controller
@RequestMapping(value = "/broadbandManController")
public class BroadbandManController {
	@Resource(name = "broadbandManService")
	private BroadbandManService broadbandManService;
	
	
	@RequestMapping(value = "/getBroadbandMan.do")
	public void getBroadbandMan(HttpServletRequest request,HttpServletResponse response){
		HashMap result=new HashMap();
		try {
			request.setCharacterEncoding("UTF-8");
			response.setContentType("text/html;charset=UTF-8");
			HashMap param=new HashMap();
			String account=ServletAPIUtil.getStringParameter("account", request, null);
			account="13687318269";
			
			//result = broadbandManService.getBroadbandMan(loginInfo, param);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		JSONArray jresult = new JSONArray(result.toString());
		AjaxUtil.ajaxResponse(response, jresult.toString(),AjaxUtil.RESPONCE_TYPE_TEXT);
	}
}
